<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>slot</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
  <h1>slot</h1>
  <hr>
  <div id="app">
    <adam-plate>
      <span slot="url">{{adamData.url}}</span>
      <span slot="netName">{{adamData.netName}}</span>
      <span slot="skill">{{adamData.skill}}</span>
    </adam-plate>
  </div>
  <template id="tep">
    <div>
      <p>网站地址：<slot name="url"></slot></p>
      <p>名称：<slot name="netName"></slot></p>
      <p>功能：<slot name="skill"></slot></p>
    </div>
  </template>
  <script type="text/javascript">
  var adamPlate = {
    template:'#tep'
  }
  var app = new Vue({
    el:'#app',
    data:{
      adamData:{
        url:'https://www.baidu.com',
        netName:'百度',
        skill:'搜索各种'
      }
    },
    components:{
      'adamPlate':adamPlate
    }
  })
  </script>
</body>
</html>